package rocketman;
/*
Copyright (C) <year> <name of author>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import javax.swing.ImageIcon;
import java.awt.Toolkit;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;

import java.util.*;
import java.util.Observable;
import java.util.Observer;

public class EnemyTailBeast extends Enemy
{
private double t = 0.0;
private double P0x,P0y,P1x,P1y,P2x,P2y;
private double prevx,prevy,prevx2,prevy2,prevx3,prevy3;
public EnemyTailBeast(int startxx, int startyy, String filename, int hp, AIengine aie)
{
	super(startxx, startyy, filename,hp,aie);
	P0x = 100;
	P0y = 500;
	P1x = 400;
	P1y = 100;
	P2x = 800;
	P2y = 500;

}

public void  move()
{
	if (t < 1)
		t += 0.01;

	x = (int)( (1-t)*(1-t)*P0x+2*(1-t)*t*P1x+t*t*P2x);
	y = (int)( (1-t)*(1-t)*P0y+2*(1-t)*t*P1y+t*t*P2y);
	
}

};

